//
//  FLMMeSettingCell.m
//  FLMSuperS
//
//  Created by yakun yin on 2016/10/11.
//  Copyright © 2016年 FaLaoMiaoNetworkTechnologyCo. All rights reserved.
//

#import "FLMMeSettingCell.h"

@interface FLMMeSettingCell ()
@property (weak, nonatomic) IBOutlet UILabel *label_title;
@property (weak, nonatomic) IBOutlet UIView *view_bg;
@property (weak, nonatomic) IBOutlet UILabel *label_logout;
@property (weak, nonatomic) IBOutlet UIButton *button_arrow;

@end

@implementation FLMMeSettingCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.label_logout.hidden = YES;
    self.view_bg.backgroundColor = [UIColor clearColor];
    self.view_bg.layer.borderColor = [UIColor colorWithHexString:@"#FCEDCC"].CGColor;
    self.view_bg.layer.borderWidth = 1.f;
    
}

- (void)setTitle:(NSString *)title
{
    _title = title;
    if ([title isEqualToString:@"退出"]) {
        self.label_logout.text = title;
        self.label_logout.hidden = NO;
        self.label_title.hidden = YES;
        self.button_arrow.hidden = YES;
    }
    else{
        self.label_title.text = title;
        self.label_logout.hidden = YES;
        self.label_title.hidden = NO;
        self.button_arrow.hidden = NO;
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
